Skip to content

Add support for tentative return types of internal methods #6971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

kocsismate
Copy link
Member

@kocsismate kocsismate added the RFC label May 11, 2021
@nikic
Copy link
Member

nikic commented May 11, 2021

Something you might want to consider is moving the tentative flag into ZEND_ACC_TENTATIVE_RETURN_TYPE -- at least I find the asymmetry between the two flags a bit odd.

@kocsismate kocsismate force-pushed the tentative-return-type-1 branch from 99139e8 to b96379f Compare May 13, 2021 16:14
@kocsismate
Copy link
Member Author

Something you might want to consider is moving the tentative flag into ZEND_ACC_TENTATIVE_RETURN_TYPE -- at least I find the asymmetry between the two flags a bit odd.

I've just searched for & ZEND_ACC_HAS_RETURN_TYPE, and the vast majority of these usages don't need special handling of tentative types, so I'm a bit hesitant to add the ZEND_ACC_TENTATIVE_RETURN_TYPE flag instead of ZEND_ACC_HAS_RETURN_TYPE. Do you think it would be actually useful to have this? If so, I'll add it!

Or I just misunderstood you?

Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking pretty good.

@kocsismate
Copy link
Member Author

Closed via 532c60c

@kocsismate kocsismate closed this May 14, 2021
@kocsismate kocsismate deleted the tentative-return-type-1 branch May 14, 2021 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants